
#include <iostream>
#include<stdarg.h>
using namespace std;
int main()
{
	char xq[][10] = { "x","monday","tuesday","wednesday","thursday","friday","saturday","sunday" };
	int n;
	cin >> n;
	if (n>7 || n<1) cout << "invalid";
	else
		cout << xq[n]<<endl;
	system("pause");
	return 0;
}
